﻿<UserControl x:Class="ViCode_LeVi.Controls.VMProjectInfo"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     xmlns:vmcontrol="clr-namespace:ViCode_LeVi.Controls"
        xmlns:Langs="clr-namespace:ViCode_LeVi.Langs"
        xmlns:xcdg="clr-namespace:Xceed.Wpf.Controls;assembly=Xceed.Wpf.Controls"
             xmlns:Data="clr-namespace:ViCode_LeVi.Data">
    <vmcontrol:VMRootControl>
        <StackPanel>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>

                <vmcontrol:VMTextBlock Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Company Name" Margin="2"/>
                <vmcontrol:VMTextBox  Grid.Column="1" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Stretch" Text="{Binding CompanyName}" Margin="2"/>

                <vmcontrol:VMTextBlock Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Project Name" Margin="2"/>
                <vmcontrol:VMTextBox  Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Stretch" Text="{Binding Name}" Margin="2"/>

                <vmcontrol:VMTextBlock Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Creator" Margin="2"/>
                <vmcontrol:VMTextBox  Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Stretch" Text="{Binding Author}" Margin="2"/>
            
                <vmcontrol:VMTextBlock Grid.Column="0" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Commentator" Margin="2"/>
                <vmcontrol:VMTextBox  Grid.Column="1" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Stretch" Text="{Binding Comment}" Margin="2"/>

                <vmcontrol:VMTextBlock Grid.Column="0" Grid.Row="4" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Start Date" Margin="2"/>
                <xcdg:DatePicker Grid.Column="1" Grid.Row="4" VerticalAlignment="Center" HorizontalAlignment="Left" SelectedDate="{Binding StartedDate_Date, Mode = TwoWay}" Margin="2"/>

            </Grid>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                <Button Content="OK" Name="Button_OK" Margin="2"/>
                <Button Content="Cancel" Name="Button_Cancel" Margin="2"/>
            </StackPanel>
        </StackPanel>
    </vmcontrol:VMRootControl>
</UserControl>
